package com.gxa.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("药品分类的实体")
public class SysDrugType {

  @ApiModelProperty(name = "id",notes = "药品分类id",dataType = "Integer",required =  true)
  private Integer id;
  @ApiModelProperty(name = "drugTypePid",notes = "药品父类id",dataType = "Integer",required =  false)
  private Integer drugTypePid;
  @ApiModelProperty(name = "drugTypeName",notes = "药品分类名称",dataType = "String",required =  false)
  private String drugTypeName;
  @ApiModelProperty(name = "isShow",notes = "显示",dataType = "Byte",required =  false)
  private Byte isShow;
  @ApiModelProperty(name = "remark",notes = "备注",dataType = "String",required =  false)
  private String remark;
  @ApiModelProperty(name = "sort",notes = "排序",dataType = "Integer",required =  false)
  private Integer sort;


  @ApiModelProperty(name = "createTime",notes = "创建时间",dataType = "Timestamp",required = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Timestamp createTime;
  @ApiModelProperty(name = "updateTime",notes = "更新时间",dataType = "Timestamp",required = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Timestamp updateTime;
  @ApiModelProperty(name = "isDeleted",notes = "是否删除",dataType = "Byte",required = false)
  private Byte isDeleted;

}
